﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Cadcam7Moddel.Model
{
    public class Mon
    {
        [Key]
        public int ID { get; set; }
        public string Name { get; set; }

        public string LangID { get; set; }
        [ForeignKey("LangID")]
        public virtual NgonNgu NgonNgu { get; set; }

        public string NoiDung { get; set; }
       
        public Nullable<int> ParentID { get; set; }
        [ForeignKey("ParentID")]
        public virtual Mon MonCha { get; set; }

        public int SubjectID { get; set; }
        [ForeignKey("SubjectID")]
        public virtual Subject Subject { get; set; }
    }
}
